<div class="wp-20" ui-view="container">
    <div ng-if="!noPermission">
        <div class="head_title" >
            <span class="tit-color">角色管理</span>
        </div>
        <div class="searchWapper white-background">
            <div class="form-group searchLump">
                <div class="searchTitle">操作：</div>
                <div class="search-select" style="margin-top: 2px">
                    <button class="btn btn-primary" style="margin-left: 20px" ui-sref="main.role.manage">新建</button>
                </div>

            </div>
        </div>

        <div class="white-background" style="margin:15px  0px">

            <table class="table table-bordered table-hover table-page">

                <thead>
                <tr>

                    <th>角色_ID</th>
                    <th>角色名称</th>
                    <th>角色说明</th>
                    <th>创建人</th>
                    <th>创建时间</th>


                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="role in roleList">


                    <td>
                        {{role.roleId}}
                    </td>
                    <td>
                        {{role.roleName}}
                    </td>
                    <td>
                      {{role.roleExplain}}
                    </td>
                    <td>
                       {{role.savePerson}}
                    </td>
                    <td>
                        {{role.saveTime}}
                    </td>

                    <td>
                        <a ui-sref="main.role.manage({roleId:role.roleId})" class="time-out">编辑</a>
                        <a ng-if="role.adminUserNum==0"  ng-click="delete(role)" class="time-out">删除</a>
                        <a ng-if="role.adminUserNum>0" class="time-out not-circle">删除</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>

        <div class="panel-footer paging">
        <s-pagination conf="paginationConf"></s-pagination>
    </div>
    </div>
    <div ng-if="noPermission" ng-include="'templates/no-permission.html'"></div>


    <!--<a ui-sref="campaigns.detail({campaignsId:1})"  ui-sref-opts="{inherit:false}">aaaaa</a>-->
</div>
